package com.cipe.cmrs.util;

import java.util.List;

/**
 * Helper for all Collection related functionalities
 * 
 * @author Allan Ramirez (ramirezag@gmail.com)
 */
public enum CollectionUtil {
    INSTANCE;

    public List<? extends Object> trimList(List<? extends Object> list, int size) {
        for (int i = list.size() - 1; i >= size; i--) {
            list.remove(i);
        }
        return list;
    }
}